<?php
	if($strStyleSheet == TRUE){
		echo "<table class='Normal' border='0' align='left' width='450'>";
	}
		
     echo "
     <tr align='left'>
         <td align='left' colspan='2'>
             <H2>Staff Search Result</H2>
         </td>
     </tr>
";
//include (MODULE . "/screen/SearchStaff");
//include (MODULE . "/action/qrySelectStaff");
        //echo $strSQL;
if(!$myrow[0]==""){
     do {

echo "
     <tr bgcolor='".switch_background($boBG)."'>
         <td>
             <a href='" . ScreenURL("EnterStaff",array('intStaffID'=>$myrow[0]) ) . "' target='_blank'>
             <img src='./images".SITE_SUFFIX."/update.gif' border='0' alt='Update' align='middle'></a>
             ".$myrow["Surname"].",
         </td>
         <td>
             ".$myrow["FirstName"]."
         </td>
";
echo "
         <td align='right'>
              <a href=\"" . ScreenURL("ListStaff",array('intStaffID'=>$myrow[0],'ACTION'=>"qryDeleteStaff") ) . "\"
                 onclick=\"return confirmLink(this, 'Delete ".$myrow["FirstName"]." ".$myrow["Surname"]."');\">
              <img src='./images".SITE_SUFFIX."/delete.gif' border='0' alt='Delete' align='middle'></a>
         </td>
";
echo "
     </tr>
";

         $boBG = -1 - $boBG;
     } while ($myrow = mysql_fetch_array($result));
}else{
echo "
     <tr class='MandatoryRed'><br/>
         <td colspan='3'>
             Your Search Has Returned No Results.
         </td>
     </tr>
";
}
	if($strStyleSheet == TRUE){
   		echo "</table>";
	}
?>
